<?php



class SmsServiceMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.SmsServiceMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('sms_service');
		$tMap->setPhpName('SmsService');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ID', 'Id', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('KEYWORD', 'Keyword', 'string', CreoleTypes::VARCHAR, false, 20);

		$tMap->addColumn('SERVICE_NUMBER', 'ServiceNumber', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('DESCRIPTION', 'Description', 'string', CreoleTypes::VARCHAR, false, 255);

		$tMap->addColumn('FIRST_PARAM', 'FirstParam', 'string', CreoleTypes::VARCHAR, false, 150);

		$tMap->addColumn('LAST_PARAM', 'LastParam', 'string', CreoleTypes::VARCHAR, false, 150);

		$tMap->addColumn('INVALID_NUMBER_MSG', 'InvalidNumberMsg', 'string', CreoleTypes::VARCHAR, false, 150);

		$tMap->addColumn('INVALID_CONTENT_MSG', 'InvalidContentMsg', 'string', CreoleTypes::VARCHAR, false, 150);

	} 
} 